<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><?php echo (session('mycity')); echo ($br); echo ($se); if($pr != '' ): echo ($titlepr); endif; ?>
	<?php if($ag != '' ): echo ($titleag); endif; ?>二手车报价_最新<?php echo (session('mycity')); echo ($br); echo ($se); if($pr != '' ): echo ($titlepr); endif; ?>
	<?php if($ag != '' ): echo ($titleag); endif; ?>个人二手车出售转让交易信息-58链车二手车交易市场</title>
<link rel="stylesheet" href="/Public/Home/css/reset.css">
<link rel="stylesheet" href="/Public/Home/css/common.css">
<link rel="stylesheet" href="/Public/Home/css/list.css">
<script src="/Public/Home/js/jquery-1.12.4.min.js"></script>
<script src="/Public/Home/js/common.js"></script>
<script src="/Public/Home/js/list.js"></script>
<!--[if IE 8]>
<script>
$(document).ready(function () {
	$(".filter-more-select.color a:nth-child(3n)").css("border-right", "none");
	$(".list li:nth-child(4n)").css("margin-right", "0");
});
</script>
<![endif]-->
</head>
<body>
<!-- header start -->
    <!-- header start -->
<div class="index-header">
    <div class="header">
        <!-- logo start -->
        <a class="header-logo" href="/"></a>
        <!-- logo end -->
        <!-- city start -->
        <div class="header-city-cur">
            <span id="mycity"><?php echo (session('mycity')); ?></span>
            <div class="header-city-select">
                <p id="a" class="column-head">选择城市</p>
                <div class="header-city-wrap clearfix">
                    <?php if(is_array($citys)): $i = 0; $__LIST__ = $citys;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$city): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Home/Index/changecity',array('ci'=>$city['mkc'],'citype'=>1));?>"><?php echo ($city["mkc"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
                <p id="a" class="column-head">选择市场</p>
                <div class="header-city-wrap clearfix">
                    <?php if(is_array($mks)): $i = 0; $__LIST__ = $mks;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$mk): $mod = ($i % 2 );++$i;?><a href="<?php echo U('Home/Index/changecity',array('ci'=>$mk['mkname'],'citype'=>0));?>"><?php echo ($mk["mkname"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
                <p class="header-city-more">更多城市/市场正在加紧筹备，敬请期待。</p>
            </div>
        </div>
        <!-- city end -->
        <!-- phone start -->
        <p class="header-phone">
            全国统一热线：<span>400-100-1313<br><span class="header-phone-small">400-100-要车要车</span></span>
        </p>
        <!-- phone end -->
        <!-- search start -->
        <div class="header-search">
            <input class="header-search-input" type="text" id="keywords" placeholder="搜索您想要的车">
            <button class="header-search-btn" onclick="javascript:search()">搜索</button>
        </div>
        <!-- search end -->
    </div>
</div>
<!-- header end -->

<!-- nav start -->
<div class="nav-wrap">
    <div class="nav">
        <a class="nav-link <?php if(MODULE_NAME== Index && ACTION_NAME== index): ?>cur<?php endif; ?>" href="<?php echo U('Home/Index/index');?>">首页</a>
        <a class="nav-link <?php if(CONTROLLER_NAME== Index && ACTION_NAME== get_car_list): ?>cur<?php endif; ?>" href="<?php echo U('Home/Index/get_car_list');?>?pa=0&ma=40&or=d&pl=<?php echo (session('mycity')); ?>&ci=<?php echo (session('citype')); ?>">全部车型</a>
        <a class="nav-link <?php if(CONTROLLER_NAME== Seller && ACTION_NAME== index): ?>cur<?php endif; ?>" href="<?php echo U('Home/Seller/index');?>">我要寄售</a>
        <a class="nav-link" href="#">资讯</a>
        <a class="nav-link" href="#">网点</a>
         <!--登录显示-->
        <?php if($Think.session.user_id): ?><div class="xly_right cur">
                <a href="#"><?php echo (session('username')); ?></a>
            </div>
        <?php else: ?>
            <!--未登录显示-->
            <div class="xly_right unlog">
                <a href="#">登录</a>&nbsp;/&nbsp;<a href="#">注册</a>
            </div><?php endif; ?>
    </div>
</div>
<!-- nav end
<!-- header end -->    


<div class="crumbs">
	<a href="/">首页</a>
	<em>&gt;</em>
	<span><?php echo (session('mycity')); ?>二手车</span>
</div>
<!-- breadcrumbs end -->
<style type="text/css">
	.filter span i{
		display: inline-block;
	    width: 11px;
	    height: 6px;
	    margin-left: 4px;
	    font-size: 0;
	    line-height: 0;
	    background-position: -40px 0;
	    vertical-align: 2px;
	    background: url(/Public/Home/images/list.png) 0 0px;
	    background-repeat: no-repeat;
	}
	.dd-all {
	    width: 1128px;
	    border-top: 1px solid #e6e6e6;
	    display: none;
	}
	.dd-all ul {
	    /*width: 350px;*/
	    padding: 20px 0 0 46px;
	    float: left;
	}
	.dd-all li {
	    overflow: hidden;
	    padding-bottom: 10px;
	    float: left;
	}
	.dd-all label {
	    float: left;
	    width: 20px;
	    height: 24px;
	    line-height: 24px;
	    color: #22ac38;
	    font-size: 14px;
	    font-weight: 700;
	}
	.dd-all p {
	    float: left;
	    width: 330px;
	}
	.dd-all a {
	    float: left;
	    height: 24px;
	    line-height: 24px;
	    margin-right: 15px;
	    font-size: 14px;
	    color: #495056;
	}
	.pp_all{
		float:right;
		margin-right: 43px;
	}
	.pp_all.all i{
		background-position:0 -8px;
	}
	
</style>
<!-- filter start -->
<ul class="filter">
	<!-- filter brand start -->
	<li class="clearfix">
		<p class="filter-title">品牌：</p>
		<div class="filter-wrap clearfix" id="brand">
				<a class="filter-item <?php if($getData["br"] == '' ): ?>cur<?php endif; ?>"  href="javascript:jumpUrl('br','')">不限</a>
		    <?php if(is_array($pp_arr)): $i = 0; $__LIST__ = $pp_arr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$pp): $mod = ($i % 2 );++$i; if($key < 18): ?><a class="filter-item <?php if($getData["br"] == $pp["carbrand"] ): ?>cur<?php endif; ?>"  href="javascript:jumpUrl('br','<?php echo ($pp["carbrand"]); ?>')"><?php echo ($pp["carbrand"]); ?></a><?php endif; endforeach; endif; else: echo "" ;endif; ?>
			<span class="pp_all">全部<i></i></span>
		</div>
		<div class="dd-all">
			<ul>
				<?php if(is_array($pp_zm)): $i = 0; $__LIST__ = $pp_zm;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li>
	                    <label><?php echo ($key); ?></label>
	                    <p>
	                    	<?php if(is_array($v)): $i = 0; $__LIST__ = $v;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$p): $mod = ($i % 2 );++$i;?><a class="filter-item <?php if($getData["br"] == $p ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('br','<?php echo ($p); ?>')"><?php echo ($p); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
	                    </p>
	                </li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
	</li>
	<!-- filter brand end -->

	<!-- filter class start -->
	<li class="clearfix">
		<p class="filter-title">车系：</p>
		<div class="filter-wrap clearfix" id="series">
			<?php if(is_array($series)): $i = 0; $__LIST__ = $series;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i; if($key < 18): ?><a class="filter-item <?php if($getData["se"] == $v["carseries"] ): ?>cur<?php endif; ?>"  href="javascript:jumpUrl('se','<?php echo ($v["carseries"]); ?>')"><?php echo ($v["carseries"]); ?></a><?php endif; endforeach; endif; else: echo "" ;endif; ?>
		</div>
	</li>
	<!-- filter class end -->

	<!-- filter price start -->
	<li class="clearfix">
		<p class="filter-title">价格：</p>
		<div id="price" class="filter-wrap clearfix">
			<a class="filter-item <?php if($getData["pr"] == '' ): ?>cur<?php endif; ?>"  href="javascript:jumpUrl('pr','')">不限</a>
			<a class="filter-item <?php if($getData["pr"] == '0-3' ): ?>cur<?php endif; ?>"  href="javascript:jumpUrl('pr','0-3')">3万以下</a>
			<a class="filter-item <?php if($getData["pr"] == '3-5' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('pr','3-5')">3-5万</a>
			<a class="filter-item <?php if($getData["pr"] == '5-7' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('pr','5-7')">5-7万</a>
			<a class="filter-item <?php if($getData["pr"] == '7-9' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('pr','7-9')">7-9万</a>
			<a class="filter-item <?php if($getData["pr"] == '9-12' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('pr','9-12')">9-12万</a>
			<a class="filter-item <?php if($getData.getData.pr == '12-16' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('pr','12-16')">12-16万</a>
			<a class="filter-item <?php if($getData["pr"] == '16-20' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('pr','16-20')">16-20万</a>
			<a class="filter-item <?php if($getData["showpr"] == '大于20万' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('pr','>20')">20万以上</a>
			<input class="filter-price-input" type="text" id="sprice" value=<?php echo ($showprmin); ?>>
			<span class="filter-price-text">-</span>
			<input class="filter-price-input" type="text" id="eprice" value=<?php echo ($showprmax); ?>>
			<span class="filter-price-text">万</span>
			<button class="filter-price-btn" onclick="diyprice()">筛选</button>
		</div>
	</li>
	<!-- filter price end -->

	<!-- filter age start -->
	<li class="clearfix">
		<p class="filter-title">车龄：</p>
		<div class="filter-wrap clearfix">
			<a class="filter-item <?php if($ag == '' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('ag','')">不限</a>
			<a class="filter-item <?php if($showage == '大于5年' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('ag','>5')">5年以上</a>
			<a class="filter-item <?php if($showage == '小于5年' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('ag','<5')">5年内</a>
			<a class="filter-item <?php if($showage == '小于3年' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('ag','<3')">3年内</a>
			<a class="filter-item <?php if($showage == '小于1年' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('ag','<1')">1年以内</a>
		</div>
	</li>
	<!-- filter age end -->

	<!-- filter more start -->
	<li class="clearfix">
		<p class="filter-title">更多：</p>
		<div class="filter-wrap clearfix">
			<div class="filter-more-wrap">
				<div class="filter-more-title <?php if($mo != '' ): ?>cur<?php endif; ?>" id="model"><?php if($mo != '' ): echo ($mo); else: ?>车型<?php endif; ?></div>
				<div class="filter-more-cutline"></div>
				<div class="filter-more-select">
					<a class="filter-more-item" href="javascript:jumpUrl('mo','')">不限</a>
					<a class="filter-more-item" href="javascript:jumpUrl('mo','两厢轿车')">两厢轿车</a>
					<a class="filter-more-item" href="javascript:jumpUrl('mo','三厢轿车')">三厢轿车</a>
					<a class="filter-more-item" href="javascript:jumpUrl('mo','跑车')">跑车</a>
					<a class="filter-more-item" href="javascript:jumpUrl('mo','SUV')">SUV</a>
					<a class="filter-more-item" href="javascript:jumpUrl('mo','MPV')">MPV</a>
				</div>
			</div>
			<div class="filter-more-wrap">
				<div class="filter-more-title <?php if($sea != '' ): ?>cur<?php endif; ?>"><?php if($sea != '' ): echo ($titlesea); else: ?> 座位<?php endif; ?></div>
				<div class="filter-more-cutline"></div>
				<div class="filter-more-select">
                    <a class="filter-more-item" href="javascript:jumpUrl('sea','')">不限</a>
					<a class="filter-more-item" href="javascript:jumpUrl('sea','2-2')">两座</a>
					<a class="filter-more-item" href="javascript:jumpUrl('sea','4-4')">4座</a>
					<a class="filter-more-item" href="javascript:jumpUrl('sea','5-5')">5座</a>
					<a class="filter-more-item" href="javascript:jumpUrl('sea','6-6')">6座</a>
					<a class="filter-more-item" href="javascript:jumpUrl('sea','>7')">7座以上</a>
				</div>
			</div>
			<div class="filter-more-wrap">
				<div class="filter-more-title <?php if($lo != '' ): ?>cur<?php endif; ?>"><?php if($lo != '' ): echo ($showlong); else: ?> 行驶里程<?php endif; ?></div>
				<div class="filter-more-cutline"></div>
				<div class="filter-more-select">
					<a class="filter-more-item" href="javascript:jumpUrl('lo','')">不限</a>
					<a class="filter-more-item" href="javascript:jumpUrl('lo','<1')">小于1万公里</a>
					<a class="filter-more-item" href="javascript:jumpUrl('lo','<3')">小于3万公里</a>
					<a class="filter-more-item" href="javascript:jumpUrl('lo','<5')">小于5万公里</a>
					<a class="filter-more-item" href="javascript:jumpUrl('lo','>5')">大于5万公里</a>
				</div>
			</div>
			<div class="filter-more-wrap">
				<div class="filter-more-title <?php if($en != '' ): ?>cur<?php endif; ?>"><?php if($en != '' ): echo ($en); else: ?> 变速箱<?php endif; ?></div>
				<div class="filter-more-cutline"></div>
				<div class="filter-more-select">
					<a class="filter-more-item" href="javascript:jumpUrl('en','')">不限</a>
					<a class="filter-more-item" href="javascript:jumpUrl('en','手动')">手动</a>
					<a class="filter-more-item" href="javascript:jumpUrl('en','自动')">自动</a>
				</div>
			</div>
			<div class="filter-more-wrap">
				<div class="filter-more-title <?php if($di != '' ): ?>cur<?php endif; ?>"><?php if($di != '' ): echo ($showdi); else: ?> 排量<?php endif; ?></div>
				<div class="filter-more-cutline"></div>
				<div class="filter-more-select">
					<a class="filter-more-item" href="javascript:jumpUrl('di','')">不限</a>
					<a class="filter-more-item" href="javascript:jumpUrl('di','0-1')">小于1.0L</a>
					<a class="filter-more-item" href="javascript:jumpUrl('di','1-1.6')">1.0-1.6L</a>
					<a class="filter-more-item" href="javascript:jumpUrl('di','1.6-2')">1.6-2.0L</a>
					<a class="filter-more-item" href="javascript:jumpUrl('di','2-3')">2.0-3.0L</a>
					<a class="filter-more-item" href="javascript:jumpUrl('di','>3')">大于3.0L</a>
				</div>
			</div>
			<div class="filter-more-wrap">
				<div class="filter-more-title <?php if($oi != '' ): ?>cur<?php endif; ?>"><?php if($oi != '' ): echo ($oi); else: ?> 燃油类型<?php endif; ?></div>
				<div class="filter-more-cutline"></div>
				<div class="filter-more-select">
					<a class="filter-more-item" href="javascript:jumpUrl('oi','')">不限</a>
					<a class="filter-more-item" href="javascript:jumpUrl('oi','汽油')">汽油</a>
					<a class="filter-more-item" href="javascript:jumpUrl('oi','柴油')">柴油</a>
					<a class="filter-more-item" href="javascript:jumpUrl('oi','电动')">电动</a>
					<a class="filter-more-item" href="javascript:jumpUrl('oi','油电混合')">油电混合</a>
					<a class="filter-more-item" href="javascript:jumpUrl('oi','其他')">其他</a>
				</div>
			</div>
			
			<div class="filter-more-wrap">
				<div class="filter-more-title <?php if($con != '' ): ?>cur<?php endif; ?>"><?php if($con != '' ): echo ($con); else: ?> 国别<?php endif; ?></div>
				<div class="filter-more-cutline"></div>
				<div class="filter-more-select">
					<a class="filter-more-item" href="javascript:jumpUrl('con','')">不限</a>
					<a class="filter-more-item" href="javascript:jumpUrl('con','国产')">国产</a>
					<a class="filter-more-item" href="javascript:jumpUrl('con','合资')">合资</a>
					<a class="filter-more-item" href="javascript:jumpUrl('con','进口')">进口</a>
				
				</div>
			</div>
		</div>
	</li>
	<!-- filter more end -->
</ul>
<!-- filter end -->

<!-- selected start -->
<div class="selected clearfix">
	<p class="selected-text">当前筛选&gt;</p>
	<?php if($br != '' ): ?><a class="selected-del" href="javascript:jumpUrl('br','')"><?php echo ($br); ?></a><?php endif; ?>
	<?php if($se != '' ): ?><a class="selected-del" href="javascript:jumpUrl('se','')"><?php echo ($se); ?></a><?php endif; ?>
	<?php if($pr != '' ): ?><a class="selected-del" href="javascript:jumpUrl('pr','')"><?php echo ($showpr); ?></a><?php endif; ?>
	<?php if($ag != '' ): ?><a class="selected-del" href="javascript:jumpUrl('ag','')"><?php echo ($showage); ?></a><?php endif; ?>
    <?php if($ta != '' ): ?><a class="selected-del" href="javascript:jumpUrl('ta','')"><?php echo ($ta); ?></a><?php endif; ?>
    <?php if($showke != '' ): ?><a class="selected-del" href="javascript:jumpUrl('ke','')"><?php echo ($showke); ?></a><?php endif; ?>
	<!--<?php if($sea != '' ): ?><a class="selected-del" href="javascript:getBrandRedirectUrl('seatnum','')"><?php echo ($selectsea); ?></a><?php endif; ?>
	<?php if($lo != '' ): ?><a class="selected-del" href="javascript:getBrandRedirectUrl('long','')"><?php echo ($selectlo); ?></a><?php endif; ?>
	<?php if($co != '' ): ?><a class="selected-del" href="javascript:getBrandRedirectUrl('color','')"><?php echo ($co); ?></a><?php endif; ?>-->
	<a class="selected-reset" href="/index.php?m=Web&c=Index&a=getlist&pa=0&ma=40&ci=<?php echo (session('citype')); ?>&pl=<?php echo (session('mycity')); ?>">重置</a>
	<!--<p class="selected-text">共为您找到&nbsp;<span><?php echo ($total); ?></span>&nbsp;辆好车</p>-->
</div>
<!-- selected end -->

<!-- sort start -->
<div class="sort clearfix">
	<div class="sort-btn-wrap">
		<a class="sort-btn <?php if($or == 'd' ): ?>cur<?php endif; ?>" href="javascript:jumpUrl('or','d')">默认排序</a>
		<a class="sort-btn <?php if($or == 'n' ): ?>cur<?php endif; ?> " href="javascript:jumpUrl('or','n')">最新发布</a>
		<a class="sort-btn default <?php if($or == 'pa' ): ?>up cur<?php else: ?>up default<?php endif; ?> " href="javascript:jumpUrl('or','pa')">价格从低到高</a>
        <a class="sort-btn  default <?php if( $or == 'pd' ): ?>down cur<?php else: ?> down default<?php endif; ?> " href="javascript:jumpUrl('or','pd')">价格从高到低</a>
        <a class="sort-btn  default <?php if($or == 'a' ): ?>cur<?php else: ?>up default<?php endif; ?>" href="javascript:jumpUrl('or','a')">车龄从低到高</a>
		<a class="sort-btn  default <?php if($or == 'l' ): ?>cur<?php else: ?>up default<?php endif; ?>" href="javascript:jumpUrl('or','l')">里程从低到高</a>
	</div>
	<div class="sort-checkbox-wrap">
		<a class="sort-checkbox" href="javascript:void(0)"><input onchange="Iswant()" type="checkbox" id="iswant" name="iswant" <?php if($wat == 1 ): ?>checked=checked<?php endif; ?>>急售</a>
		<a class="sort-checkbox" href="javascript:void(0)"><input onchange="NewCar()" type="checkbox" id="newcar" name="newcar" <?php if($ta == '准新车' ): ?>checked=checked<?php endif; ?>>准新车</a>
	</div>
	<!--<p class="sort-text">共找到&nbsp;<span class="sort-num"><?php echo ($total); ?></span>&nbsp;辆<span class="sort-filter"></span></p>-->
    
</div>
<!-- sort end -->
<?php if($datalist[0][id] != '' ): ?><!-- list start -->
    <ul class="list clearfix">
        <?php if(is_array($datalist)): $k = 0; $__LIST__ = $datalist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$result): $mod = ($k % 2 );++$k;?><li>
                <a href="<?php echo U('Home/Index/builddetail',array('id'=>$result[id]));?>">
                    <?php $_result=explode(',',$result['imgs']);if(is_array($_result)): $i = 0; $__LIST__ = array_slice($_result,0,1,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vx): $mod = ($i % 2 );++$i;?><img src="/Public/Uploads/img/<?php echo ($vx); ?>_cn.png"><?php endforeach; endif; else: echo "" ;endif; ?>
                    <p class="list-title"><?php echo ($result[na]); ?></p>
                    <p class="list-info"><?php echo ($result[ds]); ?><span></span></p>
                    <p class="list-price"><?php echo ($result[cp]); ?>万 <s><?php echo ($result[newprice]); ?>万</s>
                    <?php if($result[cw] == 1 ): ?><span class="red">急售</span><?php endif; ?>
                    <?php if($result[cn] == 1 ): ?><span class="green">准新车</span><?php endif; ?>
                    <?php if($result[ct] == 1 ): ?><span class="orange">超值</span><?php endif; ?>
                    <?php if($result[cp] <= 5 ): ?><span class="orange">练手车</span><?php endif; ?>
                    </p>
                </a>
            </li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
    <!-- list end -->
<?php else: ?>
    <!-- no data start -->
    <div class="nodata clearfix">
        <img class="nodata-img" src="__IMG__/list-nodata.png">
        <div class="nodata-text-wrap">
            <p class="nodata-text1">更多最新车源请联系58链车。</p>
            <p class="nodata-text2">您可以直接联系<span class="header-phone-nodata">400-100-1313</span>，或者登记手机号，您将获取到最新车源。</p>
            <div class="nodata-phone">
                <p>联系电话</p>
                <input id="nodata-phone-input" type="text" placeholder="请输入您的联系方式">
                <button id="nodata-phone-btn">提交需求</button>
                <p id="nodata-phone-error"></p>
            </div>
        </div>
    </div><?php endif; ?>
<!-- no data end -->
<!-- pagination start -->
<div class="pagination">
    
    <?php
 if($_GET['pa']>0) { echo '<a  href=javascript:jumpUrlPage("'.($_GET['pa']-1).'")>上一页</a>'; } if($rowcount >8) { if($_GET['pa']>3) $start =$_GET['pa']-3; else $start = 1; if($_GET['pa']<$rowcount-3) $end =$_GET['pa']+3; else $end =$rowcount; for($a=$start;$a<=$end;$a++) { $p=$a-1; if($_GET['pa']==$p) { echo '<a class="cur"  href=javascript:jumpUrlPage("'.$p.'")>'.$a.'</a>'; }else{ echo '<a  href=javascript:jumpUrlPage("'.$p.'")>'.$a.'</a>'; } } if($end!=$rowcount){ echo '<span>...</span>'; echo '<a  href=javascript:jumpUrlPage("'.($rowcount-1).'")>'.$rowcount.'</a>'; } }else { for($a=1;$a<=$rowcount;$a++) { $p=$a-1; if($_GET['pa']==$p) { echo '<a class="cur"  href=javascript:jumpUrlPage("'.$p.'")>'.$a.'</a>'; }else{ echo '<a  href=javascript:jumpUrlPage("'.$p.'")>'.$a.'</a>'; } } } if($_GET['pa']<$rowcount) { echo '<a  href=javascript:jumpUrlPage("'.($_GET['pa']+1).'")>下一页</a>'; } ?>
	
</div>
<!-- pagination end -->


<!-- footer start -->
    
    
<!-- footer start -->
<div class="footer">
	<!-- company info start -->
	<div class="footer-company clearfix">
		<div class="footer-logo"></div>
		<p class="footer-phone">咨询电话：400-100-1313<br><span>（周一至周日 8:00-21:00）</span><br>售后服务专线：400-100-1313</p>
		<div class="footer-qrcode">
			<img src="/Public/Home/images/qrcode-wx.png">
			<p>关注微信</p>
		</div>
		<div class="footer-qrcode">
			<img src="/Public/Home/images/qrcode-wx.png">
			<p>下载APP</p>
		</div>
		<p class="footer-copyright">
			Copyright 2017 www.58lianche.com All Rights Reserved<br>蜀ICP备16031245号<br>
		</p>
	</div>
	<!-- company info end -->

    <!-- links start -->
    <div class="footer-links">
        <p class="footer-links-title">热门品牌：</p>
        <div class="footer-links-wrap clearfix" id="linkbrand">

        </div>
        <button class="footer-links-btn"></button>
    </div>
    <div class="footer-links">
        <p class="footer-links-title">热门车系：</p>
        <div class="footer-links-wrap clearfix" id="linkserise">

        </div>
        <button class="footer-links-btn"></button>
    </div>
    <div class="footer-links">
        <p class="footer-links-title">热门城市：</p>
        <div class="footer-links-wrap clearfix">
            <?php if(is_array($citys)): $i = 0; $__LIST__ = array_slice($citys,0,12,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$city): $mod = ($i % 2 );++$i;?><a href="/index.php?m=Web&c=Index&a=changecity&ci=<?php echo ($city["mkc"]); ?>&citype=1"><?php echo ($city["mkc"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
        <button class="footer-links-btn"></button>
    </div>
    <div class="footer-links">
        <p class="footer-links-title">友情链接：</p>
        <div class="footer-links-wrap clearfix">
            <?php if(is_array($linklist)): $k = 0; $__LIST__ = $linklist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$link): $mod = ($k % 2 );++$k;?><a href="<?php echo ($link["url"]); ?>" target="_blank"><?php echo ($link["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
        <button class="footer-links-btn"></button>
    </div>
    <!-- links end -->

	<!-- contact start -->
	<p class="footer-contact">四川伍捌链车汽车销售服务有限公司    四川省成都市天府新区天府大道南段2039号和美.海堂中心（天府创客）16楼1609号</p>
	<!-- contact end -->
</div>
<!-- footer end -->

<script type="text/javascript">
	$('.pp_all').click(function() {
		if($('.pp_all').hasClass('all')){
			$('.pp_all').removeClass('all');
			$('.pp_all').html('全部<i></i>');
			$('.dd-all').hide();
		}else{
			$('.pp_all').addClass('all');
			$('.pp_all').html('收起<i></i>');
			$('.dd-all').show();
		}
	});
	function jumpUrlPage(page) {
	    url = "/home/index/get_car_list?pa=" + page + "&ma=40";
	    window.location.href = makeurl("", "", url);
	}

	//品牌跳转地址
	function getRedirectUrl(p)
	{
	    window.location.href = '/home/index/get_car_list?pa=0&ma=40&ci=<?php echo (session('citype')); ?>&pl=<?php echo (session('mycity')); ?>' + p;
	}
</script>
</body>
</html>